package com.xf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xf.mapper.DmpOrganizationMapper;
import com.xf.common.core.entity.dmp.DmpOrganization;
import com.xf.service.DmpOrganizationService;

/**
 * @author JoeyLiu
 * @create 2022-03-29 14:57
 */
@Service
public class DmpOrganizationServiceImpl extends ServiceImpl<DmpOrganizationMapper, DmpOrganization> implements DmpOrganizationService {

    @Resource
    private DmpOrganizationMapper dmpOrganizationMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return dmpOrganizationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public DmpOrganization selectByPrimaryKey(String id) {
        return dmpOrganizationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateBatch(List<DmpOrganization> list) {
        return dmpOrganizationMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<DmpOrganization> list) {
        return dmpOrganizationMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<DmpOrganization> list) {
        return dmpOrganizationMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(DmpOrganization record) {
        return dmpOrganizationMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(DmpOrganization record) {
        return dmpOrganizationMapper.insertOrUpdateSelective(record);
    }
}

